<?php namespace App;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

/**
 * App\Industry
 *
 * @property int $id id
 * @property int $pid
 * @property string|null $name 职业
 * @property string|null $deleted_at
 * @property \Carbon\Carbon|null $created_at
 * @property \Carbon\Carbon|null $updated_at
 * @method static bool|null forceDelete()
 * @method static \Illuminate\Database\Query\Builder|\App\Industry onlyTrashed()
 * @method static bool|null restore()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Industry whereCreatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Industry whereDeletedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Industry whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Industry whereName($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Industry wherePid($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Industry whereUpdatedAt($value)
 * @method static \Illuminate\Database\Query\Builder|\App\Industry withTrashed()
 * @method static \Illuminate\Database\Query\Builder|\App\Industry withoutTrashed()
 * @mixin \Eloquent
 * @property-read \Illuminate\Database\Eloquent\Collection|\App\Industry[] $childIndus
 */
class Industry extends Model
{
    protected $table="industry";
    use SoftDeletes;

    public function childIndus(){
        return $this->hasMany('App\Industry','pid');
    }
}